﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Alex.Library.Cloud.Libs;

namespace Alex.Library.Cloud.VMWare.V51.VMMParameters
{
    public class DeleteParameter : IVMMParameter
    {
        public DeleteParameter(string name)
        {
            this.MeName = name;
        }

        public DeleteParameter() : this("") { }

        public string MeName { get; set; }

        public virtual bool IsValid()
        {
            if (String.IsNullOrEmpty(MeName))
            {
                ErrorMessage = "MeName is empty or null.";
                return false;
            }
            return true;
        }

        public string ErrorMessage { get; private set; }
    }

    public class DeleteVMParameter : DeleteParameter
    {
        public DeleteVMParameter(string vmName)
            : base(vmName)
        {
        }
    }
}
